package com.tcm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author Guqier
 * @version 1.0
 * @date 2023/7/2 17:12
 */
@Data
@TableName("ts_book")
public class Book {
    //书籍ID
    private Long id;

    //父级ID
    private Long parentId;

    //节点名称
    private String name;

    private Long imageId;

    //所属层级
    private Integer grade;

    //同层级排序
    private Integer sequence;

    //类型，0为课程，1为课程下节点
    private Integer type;

    //状态，0启用，1停用
    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //创建用户ID
    private Long createUser;

    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    //更新用户ID
    private Long updateUser;

    //备注
    private String memo;
}
